<template>
  <div class="margin-container-list">
    <task-commission :taskId="taskId" :taskStatus="taskStatus"></task-commission>
  </div>
</template>

<style scoped>

</style>

<script>
  import TaskLog from '@/components/Project/TaskLog'
  import TaskInfo from '@/components/Project/TaskInfo'
  import TaskCommission from '@/views/finance/task-commission/detail/TaskCommission'
  export default {
    components: {
      TaskLog,
      TaskInfo,
      TaskCommission
    },
    data() {
      return {
        positionId: '',
        taskId: '',
        taskStatus: '',
        taskType: '1'
      }
    },
    // 过滤器
    filters: {
      statusFilter(status) {
        const statusMap = {
          1: 'success',
          2: 'danger'
        }
        return statusMap[status]
      }
    },
    // 初始化页面
    created() {
      const queryParams = this.getCurrentPage().query
      if (queryParams && queryParams.positionId) {
        this.positionId = queryParams.positionId
      }
      if (queryParams && queryParams.taskId) {
        this.taskId = queryParams.taskId
      }
    }
  }
</script>
